﻿<db:Dial180 x:Class="Codeplex.Dashboarding.Dial180North"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:db="clr-namespace:Codeplex.Dashboarding"
     xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
     Height="92" Width="162"
    >

    <Grid x:Name="LayoutRoot" Height="90" Width="162">
        <Grid.Resources>
            <Storyboard x:Name="_swipe" x:Key="_swipe">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                    <SplineDoubleKeyFrame x:Name="_value" KeyTime="00:00:0.75" Value="89.574"/>
                </DoubleAnimationUsingKeyFrames>
            </Storyboard>

            <Storyboard x:Name="_moveGrab" x:Key="_moveGrab">
                <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="_grabHandle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
                    <SplineDoubleKeyFrame KeyTime="00:00:0.75" Value="150" x:Name="_grabPos"/>
                </DoubleAnimationUsingKeyFrames>

            </Storyboard>

        </Grid.Resources>

        <Path Margin="2.167,0.333,-0.167,-1.333" Data="M79.908371,2 C101.42219,2 120.89922,10.588699 134.99791,24.474991 C142.0472,31.418026 147.75186,39.685452 151.69432,48.865921 C153.66551,53.4561 155.19612,58.274513 156.23393,63.26976 C156.75284,65.767365 157.14853,68.309189 157.41452,70.888779 L157.78583,78.131157 L158,78.131157 L158,79 L158,84 L158,89 L2,89 L2,79 L2.0136156,79 L2,78.734421 C1.9999982,36.354954 36.880947,2 79.908371,2 z" Stretch="Fill" Stroke="#FF000000" StrokeThickness="4">
            <Path.Fill>
                <RadialGradientBrush GradientOrigin="0.5,1.17">
                    <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.458" ScaleY="1.318"/>
                            <SkewTransform CenterX="0.5" CenterY="0.5"/>
                            <RotateTransform CenterX="0.5" CenterY="0.5"/>
                            <TranslateTransform X="0.013" Y="0.012"/>
                        </TransformGroup>
                    </RadialGradientBrush.RelativeTransform>
                    <GradientStop x:Name="_colourRangeStart" Color="#FFFFFFFF" Offset="0"/>
                    <GradientStop x:Name="_colourRangeEnd" Color="#FF000000" Offset="1"/>
                </RadialGradientBrush>
            </Path.Fill>
        </Path>
        <db:Scale Margin="7,7,5,-67" Sweep="180" AngleOffset="-90" Mark="Square" MarkSize="6" x:Name="_scale" ShowShadow="True"/>
        <TextBlock Margin="16,0,0,3" x:Name="_txt0" VerticalAlignment="Bottom" Height="12.021" FontSize="10" Foreground="#FFFFFFFF" Text="0" TextWrapping="Wrap" HorizontalAlignment="Left" Width="43.001"/>
        <TextBlock Margin="0,0,15,3" VerticalAlignment="Bottom" Height="12.321" TextWrapping="Wrap" x:Name="_txt4" FontSize="10" Foreground="#FFFFFFFF" Text="100" TextAlignment="Right" HorizontalAlignment="Right" Width="37.334"/>
        <TextBlock Margin="58,12,54,0" TextWrapping="Wrap" x:Name="_txt2" VerticalAlignment="Top" Height="11.99" FontSize="10" Foreground="#FFFFFFFF" Text="50" TextAlignment="Center"/>
        <TextBlock Margin="16,27.947,0,0" TextWrapping="Wrap" HorizontalAlignment="Left" x:Name="_txt1" VerticalAlignment="Top" Width="37" Height="12" RenderTransformOrigin="0.5,0.5" FontSize="10" Foreground="#FFFFFFFF" Text="25" TextAlignment="Center"  >
        	<TextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1" ScaleY="1"/>
        			<SkewTransform AngleX="0" AngleY="0"/>
        			<RotateTransform Angle="-45"/>
        			<TranslateTransform X="0" Y="0"/>
        		</TransformGroup>
        	</TextBlock.RenderTransform>
        </TextBlock>
        <TextBlock Margin="0,28,11.215,0" Foreground="#FFFFFFFF" TextWrapping="Wrap" HorizontalAlignment="Right" x:Name="_txt3" VerticalAlignment="Top" Width="43.001" Height="11.778" RenderTransformOrigin="0.5,0.5" FontSize="10" Text="75" TextAlignment="Center"  >
        	<TextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1" ScaleY="1"/>
        			<SkewTransform AngleX="0" AngleY="0"/>
        			<RotateTransform Angle="45"/>
        			<TranslateTransform X="0" Y="0"/>
        		</TransformGroup>
        	</TextBlock.RenderTransform>
        </TextBlock>
        <Path Margin="14.325,4,8.343,39" Data="M63.950668,5.6843419E-14 C90.184196,-9.2387194E-07 113.31331,13.466434 126.97107,33.948566 L134.2298,45.361115 C134.2298,45.361115 106.35354,34.114239 97.925453,30.815973 C83.436493,25.145834 65.200378,25.638889 65.200378,25.638889 C60.897793,25.40937 50.378696,26.707178 32.725117,30.322918 C16.447088,33.656925 -4.9961476,46.347225 -4.9961476,46.347225 L0.93027878,33.948566 C14.588025,13.466434 37.717144,-9.2387194E-07 63.950668,5.6843419E-14 z" Stretch="Fill" x:Name="_glowTop" Opacity="0.4">
            <Path.Fill>
                <RadialGradientBrush GradientOrigin="0.528,0.229">
                    <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.234" ScaleY="1.217"/>
                            <SkewTransform CenterX="0.5" CenterY="0.5"/>
                            <RotateTransform CenterX="0.5" CenterY="0.5" Angle="28.707"/>
                            <TranslateTransform X="-0.035" Y="-0.036"/>
                        </TransformGroup>
                    </RadialGradientBrush.RelativeTransform>
                    <GradientStop Color="#FFFFFFFF"/>
                    <GradientStop Color="#4CFFFFFF" Offset="1"/>
                </RadialGradientBrush>
            </Path.Fill>
        </Path>
        <Path Height="72.816" HorizontalAlignment="Left" Margin="77.95,8.58,0,0" x:Name="path" VerticalAlignment="Top" Width="8.5" RenderTransformOrigin="0.463,1.007" Stretch="Fill" Stroke="#FF000000" Data="M99.875,41.875 L95.916512,115.45777 L103.27318,115.45777 z">
            <Path.Effect>
                <DropShadowEffect />
            </Path.Effect>
            <Path.Fill>
                <RadialGradientBrush GradientOrigin="-0.076,1.25">
                    <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.784" ScaleY="1.784"/>
                            <SkewTransform CenterX="0.5" CenterY="0.5"/>
                            <RotateTransform CenterX="0.5" CenterY="0.5"/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </RadialGradientBrush.RelativeTransform>
                    <GradientStop Color="#FF615A5A" x:Name="_needleHighColour" Offset="0"/>
                    <GradientStop Color="#FFFFFFFF" x:Name="_needleLowColour"  Offset="1"/>

                </RadialGradientBrush>
            </Path.Fill>
            <Path.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Path.RenderTransform>
        </Path>

        <Canvas x:Name="_grabHandle" Width="24" RenderTransformOrigin="0.5,0.968" Canvas.Top="20" Canvas.Left="68" Margin="71,1,75,7">
            <Canvas.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="0"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Canvas.RenderTransform>
            <Rectangle x:Name="_grabHighlight" Fill="Transparent" RenderTransformOrigin="0.5,1" Height="77" Width="8" Canvas.Left="8" Canvas.Top="3"/>
            <Path Height="7" Width="6.5" Fill="#FFF0CD2D" Stretch="Fill" Stroke="#FF000000" Data="M0.5,0.5 L6,3 C4,4 2.1666667,6.5 0.5,6.5 z" Canvas.Top="12"/>
            <Path Height="7" Width="7" Fill="#FFF0CD2D" Stretch="Fill" Stroke="#FF000000" Data="M0.5,0.5 L6,3 C4,4 2.1666667,6.5 0.5,6.5 z" RenderTransformOrigin="0.5,0.5" Canvas.Top="12" Canvas.Left="17">
                <Path.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="-1"/>
                        <SkewTransform/>
                        <RotateTransform/>
                        <TranslateTransform/>
                    </TransformGroup>
                </Path.RenderTransform>
            </Path>
        </Canvas>
        <Path x:Name="_needleCoverCircle" Height="16.167" HorizontalAlignment="Left" Margin="66.333,70.833,0,0" VerticalAlignment="Top" Width="32.5" Stretch="Fill" Stroke="#FF080808" Data="M12.5,0.5 C19.127438,0.5 24.5,5.8726006 24.5,12.5 L0.5,12.5 C0.49999762,5.8725972 5.8725696,0.5 12.5,0.5 z" >
            <Path.Fill>
                <RadialGradientBrush GradientOrigin="0.5,1.038">
                    <RadialGradientBrush.RelativeTransform>
                        <TransformGroup>
                            <ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.691" ScaleY="1.691"/>
                            <SkewTransform CenterX="0.5" CenterY="0.5"/>
                            <RotateTransform CenterX="0.5" CenterY="0.5"/>
                            <TranslateTransform X="0.019999999552965164" Y="0.38400000333786011"/>
                        </TransformGroup>
                    </RadialGradientBrush.RelativeTransform>
                    <GradientStop  Color="#FF2F2F2F"/>
                    <GradientStop  Color="#FFC9CBCC" Offset="1"/>
                </RadialGradientBrush>
            </Path.Fill>
        </Path>

        <Path IsHitTestVisible="False" Margin="2.333,0,-0.333,-1" RenderTransformOrigin="0.5,0.500000005239969" Data="M79.413658,6.3339815 C38.868587,6.333982 5.999999,37.529858 6.0000019,76.01236 L6.0128317,76.253517 L6.0000019,76.253517 L6.0000019,85.333977 L153,85.333977 L153,80.793747 L153,76.253517 L153,75.464569 L152.79819,75.464569 L152.4483,68.888161 C152.19766,66.545769 151.8248,64.237679 151.33583,61.969738 C150.35788,57.433826 148.91559,53.058483 147.05812,48.890392 C143.34311,40.554104 137.96756,33.046902 131.32495,26.742306 C118.03966,14.132915 99.686295,6.333982 79.413658,6.3339815 z M79.908371,2 C101.42219,2.000001 120.89922,10.5887 134.99791,24.474991 C142.0472,31.418026 147.75186,39.685452 151.69432,48.865921 C153.66551,53.4561 155.19612,58.274513 156.23393,63.26976 C156.75284,65.767365 157.14853,68.309189 157.41452,70.888779 L157.78583,78.131157 L158,78.131157 L158,79 L158,84 L158,89 L2,89 L2,79 L2.0136151,79 L2,78.734421 C1.9999982,36.354954 36.880947,2.000001 79.908371,2 z" Stretch="Fill" StrokeThickness="4" x:Name="_bezel" Opacity="0.25">
            <Path.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform/>
                    <TranslateTransform/>
                </TransformGroup>
            </Path.RenderTransform>
            <Path.Fill>
                <LinearGradientBrush EndPoint="0.502,0" StartPoint="0.498,1">
                    <GradientStop Color="#FF040404"/>
                    <GradientStop Color="#FFFFFFFF" Offset="1"/>
                </LinearGradientBrush>
            </Path.Fill>
        </Path>

        <TextBlock x:Name="_text" Text="1234"  VerticalAlignment="Bottom" TextAlignment="Center" FontSize="8" Margin="34,0,30,3.364" Visibility="Visible" />


        <TextBlock IsHitTestVisible="False" Foreground="AntiqueWhite"  x:Name="_debug" Text="" Visibility="Visible"   />

    </Grid>
</db:Dial180>
